<include file="public/header" />
</head>
<body>
<div style="margin: 15px;" class="user-main">
	<div class="user-title">
		<span >个人资料</span>
	</div>
	 <form class="layui-form mt20 J_ajaxForm"  action="{:url('Index/profile')}"  method="post">
		<div class="layui-form-item">
			<label class="layui-form-label">登录账号:</label>
			<div class="layui-input-inline">
				<input type="text" value="{$msg.user_login}" readonly="readonly"   disabled="disabled" class="layui-input layui-wd" >
			</div>
		</div>
			
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red">*</span>用户昵称</label>
			<div class="layui-input-inline">
				<input type="text" value="{$msg.nicename}"  name="nicename"  placeholder="请输入用户昵称" class="layui-input layui-wd"  lay-verify="required" maxlength="12" >
			</div>
		</div>
		  <div class="layui-form-item mt20">
            <label class="layui-form-label"><span class="red" >*</span>用户头像：</label>
            <if condition="$msg.avatar neq null">
                <img src="{$msg.avatar}" class="consultimg" id="up_image_avatar"  >
            <else/>
                <img src="/static/admin/images/logo.jpg" class="consultimg" id="up_image_avatar"  >
            </if>
            <button type="button" class="layui-btn myImgUpload ml20"  id="avatar"><i class=" layui-icon">&#xe67c;</i>上传图片</button>
            <input type="hidden" name="avatar"    id="up_input_avatar"   lay-verify="required"   value="{$msg.avatar}"/>
        </div>

		<br>
		<div class="layui-input-block mt20">
			      <button class="layui-btn layui-btn-danger"  lay-submit  lay-filter="reloadbtn">确认修改</button>
		</div>
		<br><br>
	</form>
</div>
<include file="public/footer" />
</body>
</html>